package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallCategoryDO;
import com.starlink.model.request.MallCategoryRequest;
import com.starlink.model.vo.MallCategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallCategoryDtoMapper {

    MallCategoryDtoMapper INSTANCE = Mappers.getMapper(MallCategoryDtoMapper.class);

    /**
    * DO to VO
    * @param mallCategoryDO
    * @return
    */
    MallCategoryVO do2VO(MallCategoryDO mallCategoryDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallCategoryDO request2DO(MallCategoryRequest request);
}
